home *** CD-ROM | disk | FTP | other *** search
/ Night Owl 6 / Night Owl's Shareware - PDSI-006 - Night Owl Corp (1990).iso / 028a / zip10ex.zip / GLOBALS.C < prev    next >
C/C++ Source or Header  |  1991-10-03  |  2KB  |  56 lines

  1. /*
  2.  
  3.  Copyright (C) 1990,1991 Mark Adler, Richard B. Wales, and Jean-loup Gailly.
  4.  Permission is granted to any individual or institution to use, copy, or
  5.  redistribute this software so long as all of the original files are included
  6.  unmodified, that it is not sold for profit, and that this copyright notice
  7.  is retained.
  8.  
  9. */
  10.  
  11. /*
  12.  *  globals.c by Mark Adler.
  13.  */
  14.  
  15. #define GLOBALS         /* include definition of errors[] in zip.h */
  16. #include "zip.h"
  17.  
  18.  
  19. /* Handy place to build error messages */
  20. char errbuf[FNMAX+81];
  21.  
  22. /* Argument processing globals */
  23. int recurse = 0;        /* 1=recurse into directories encountered */
  24. int pathput = 1;        /* 1=store path with name */
  25. int method = BEST;      /* one of BEST, SHRINK (only), or IMPLODE (only) */
  26. int dosify = 0;         /* 1=make new entries look like MSDOS */
  27. int verbose = 0;        /* 1=report oddities in zip file structure */
  28. int level = 5;          /* 0=fastest compression, 9=best compression */
  29. #ifdef VMS
  30.    int vmsver = 0;      /* 1=append VMS version number to file names */
  31. #endif /* VMS */
  32. int linkput = 0;        /* 1=store symbolic links as such */
  33. int noisy = 1;          /* 0=quiet operation */
  34. char *special = NULL;   /* List of special suffixes */
  35. char *key = NULL;       /* Scramble password if scrambling */
  36. char *tempath = NULL;   /* Path for temporary files */
  37.  
  38. /* Zip file globals */
  39. char *zipfile;          /* New or existing zip archive (zip file) */
  40. ulg zipbeg;             /* Starting offset of zip structures */
  41. ulg cenbeg;             /* Starting offset of central directory */
  42. struct zlist far *zfiles = NULL;  /* Pointer to list of files in zip file */
  43. extent zcount;          /* Number of files in zip file */
  44. extent zcomlen;         /* Length of zip file comment */
  45. char *zcomment;         /* Zip file comment (not zero-terminated) */
  46. struct zlist far **zsort;       /* List of files sorted by name */
  47.  
  48. /* Files to operate on that are not in zip file */
  49. struct flist far *found = NULL; /* List of names found */
  50. struct flist far * far *fnxt;   /* Where to put next name in found list */
  51. extent fcount;          /* Count of files in list */
  52.  
  53. /* Flags for cleaning up after compression routines */
  54. int shract = 0;         /* Shrink active */
  55. int impact = 0;         /* Implosion active */
  56.